package com.ws.rmi;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class RMIServer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			LocateRegistry.createRegistry(1099);
			RemoteInterface remote = new MessageReceiver();
			Naming.rebind("remote", remote);
			System.out.println("Server is ready");
		} catch (Exception e) {
			e.printStackTrace();
		}
		

	}

}
